﻿namespace Pyramid.Models
{
	public class DwzResponseModel
	{
		/// <summary>
		/// 状态代码
		/// </summary>
		public string StatusCode { get; set; }
		/// <summary>
		/// 提示信息
		/// </summary>
		public string Message { get; set; }
		/// <summary>
		/// 操作完成后要刷新的 Tab
		/// </summary>
		public string NavTabId { get; set; }
		public string Rel { get; set; }
		
		public string CallbackType { get; set; }
		public string ForwardUrl { get; set; }

		/// <summary>
		/// 附加的数据
		/// </summary>
		public object Data { get; set; }
	}

	public static class CallbackTypes
	{
		/// <summary>
		/// 关闭当前 tab
		/// </summary>
		public const string CloseCurrent = "closeCurrent";
		/// <summary>
		/// 中转到指定的 Url，此时需要提供 ForwardUrl 参数
		/// </summary>
		public const string Forward = "forward";
	}
}